package com.wzw.springboot.principle.scheduler;

import org.springframework.scheduling.config.CronTask;
import org.springframework.scheduling.support.CronTrigger;

/**
 * @author Wangzhiwen
 */
public class IncludeIdCornTask extends CronTask {

    private String id;

    public IncludeIdCornTask(String id, Runnable runnable, String expression) {
        super(runnable, expression);
        this.id = id;
    }

    public IncludeIdCornTask(String id, Runnable runnable, CronTrigger cronTrigger) {
        super(runnable, cronTrigger);
        this.id = id;
    }

    public String getId() {
        return id;
    }
}
